<%= render :partial =>'/store/toolbar'%>
<div id="content_container">
<div class="hot_container" >
  <div class="title"><span class='title_content'>用户列表</span></div>
  <%form_tag({:action=>'update_role',:id=>@user},:method => :post) do%>
    <table>

      <%for @role in @all_roles%>
        <tr>
          <td>
            <%=@role.name%>
          </td>
          <td>
            <%=check_box("role[]","id",{:checked=>@user.roles.include?(@role)},@role.id)%>
          </td>
        </tr>
      <%end%>

    </table>
    <%=submit_tag "保存"%>
  <%end%>
  <br />
  <div class="action_link">
    <%= link_to '后退',"/users",:class=>"action_back" %>
  </div>
</div>
</div>